package jsyf.oa.facade.capital;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.text.ParseException;
import java.util.List;

/**
 * Created by houtailei on 2018/2/25.
 */
@Path("/flowService")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface FlowFacade {
    @Path("/addFlow")
    String addFlow(String jsonData);

    @Path("/updateFlow")
    String updateFlow(String jsonData);

    @Path("/detailFlow")
    String detailFlow(String jsonData);

    @Path("/removeFlow")
    String removeFlow(String jsonData);

    @Path("/transferAccounts")
    String transferAccounts(String jsonData);

    @Path("/getFlowList")
    JSONObject getFlowList(String jsonData);

    @Path("/getBankCardListAndFlowList")
    List<JSONObject> getBankCardListAndFlowList(String companyId,String date) throws ParseException;

}
